#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2022-2-24 9:35
# @Author : huabao.tan
# @File : day1.py
# @Software: PyCharm
from wordcloud import WordCloud
import wordcloud
import os

text =  open(r'C:\Users\huabao.tan.CORP\Desktop\小本本.txt','r',encoding='utf-8')

a = text.read()
print(a)



wcd = WordCloud(background_color='white')
# # text = "hello world python linux html css js"
#
wcd.generate(a)

wcd.to_file('ciyun1.png')












